package spring.entity;

import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

/**
 * @author 吴阳基
 * @datetime 2024/1/10 17:01
 */
public class TestEntity {
    private String specialCharacter1;
    private String specialCharacter2;
    private User user;
    private User innerBean;

    private String[] array; // 数组类型

    private List<String> list; // List类型

    private Set<String> set; // Set类型

    private Map<String, String> map; // Map类型

    private Properties props; // Properties类型

    private String emptyValue; // 注入空字符串值

    private String nullValue = "init value"; // 注入null值

    public TestEntity() {
    }

    public TestEntity(String specialCharacter1, String specialCharacter2, User user, User innerBean, String[] array, List<String> list, Set<String> set, Map<String, String> map, Properties props, String emptyValue, String nullValue) {
        this.specialCharacter1 = specialCharacter1;
        this.specialCharacter2 = specialCharacter2;
        this.user = user;
        this.innerBean = innerBean;
        this.array = array;
        this.list = list;
        this.set = set;
        this.map = map;
        this.props = props;
        this.emptyValue = emptyValue;
        this.nullValue = nullValue;
    }

    /**
     * 获取
     * @return specialCharacter1
     */
    public String getSpecialCharacter1() {
        return specialCharacter1;
    }

    /**
     * 设置
     * @param specialCharacter1
     */
    public void setSpecialCharacter1(String specialCharacter1) {
        this.specialCharacter1 = specialCharacter1;
    }

    /**
     * 获取
     * @return specialCharacter2
     */
    public String getSpecialCharacter2() {
        return specialCharacter2;
    }

    /**
     * 设置
     * @param specialCharacter2
     */
    public void setSpecialCharacter2(String specialCharacter2) {
        this.specialCharacter2 = specialCharacter2;
    }

    /**
     * 获取
     * @return user
     */
    public User getUser() {
        return user;
    }

    /**
     * 设置
     * @param user
     */
    public void setUser(User user) {
        this.user = user;
    }

    /**
     * 获取
     * @return innerBean
     */
    public User getInnerBean() {
        return innerBean;
    }

    /**
     * 设置
     * @param innerBean
     */
    public void setInnerBean(User innerBean) {
        this.innerBean = innerBean;
    }

    /**
     * 获取
     * @return array
     */
    public String[] getArray() {
        return array;
    }

    /**
     * 设置
     * @param array
     */
    public void setArray(String[] array) {
        this.array = array;
    }

    /**
     * 获取
     * @return list
     */
    public List<String> getList() {
        return list;
    }

    /**
     * 设置
     * @param list
     */
    public void setList(List<String> list) {
        this.list = list;
    }

    /**
     * 获取
     * @return set
     */
    public Set<String> getSet() {
        return set;
    }

    /**
     * 设置
     * @param set
     */
    public void setSet(Set<String> set) {
        this.set = set;
    }

    /**
     * 获取
     * @return map
     */
    public Map<String, String> getMap() {
        return map;
    }

    /**
     * 设置
     * @param map
     */
    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    /**
     * 获取
     * @return props
     */
    public Properties getProps() {
        return props;
    }

    /**
     * 设置
     * @param props
     */
    public void setProps(Properties props) {
        this.props = props;
    }

    /**
     * 获取
     * @return emptyValue
     */
    public String getEmptyValue() {
        return emptyValue;
    }

    /**
     * 设置
     * @param emptyValue
     */
    public void setEmptyValue(String emptyValue) {
        this.emptyValue = emptyValue;
    }

    /**
     * 获取
     * @return nullValue
     */
    public String getNullValue() {
        return nullValue;
    }

    /**
     * 设置
     * @param nullValue
     */
    public void setNullValue(String nullValue) {
        this.nullValue = nullValue;
    }

    public String toString() {
        return "TestEntity{specialCharacter1 = " + specialCharacter1 + ", specialCharacter2 = " + specialCharacter2 + ", user = " + user + ", innerBean = " + innerBean + ", array = " + array + ", list = " + list + ", set = " + set + ", map = " + map + ", props = " + props + ", emptyValue = " + emptyValue + ", nullValue = " + nullValue + "}";
    }
}
